package com.example.appjava.vo;

import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;

/**
 * @author sjw
 * @className ItemVO
 * @date 2021/8/31 8:50
 * @description: TODO
 */
public class WeakRefItemInfo extends WeakReference<ItemInfo> {
    public Integer key;
    public WeakRefItemInfo(ItemInfo referent) {
        super(referent);
        this.key=referent.getId();
    }

    public WeakRefItemInfo(ItemInfo referent, ReferenceQueue<? super ItemInfo> q) {
        super(referent, q);
        this.key=referent.getId();
    }
}
